<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>jsencrypt公私钥</title>
    <script src="https://cdn.rawgit.com/travist/jsencrypt/master/bin/jsencrypt.min.js"></script>
</head>

<body>
    <script>
        let publickey = `-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvX57Kt/rHTixizCilfOX
a8oUNMOEu1UNf8MKX5M5oNeo33MupnBcLAUSLx7GArMx3ApBLTlTlmF/m8BuDzep
C4GEtDzr4SmdF8JCpjaE3tJ8lB9IhGfNlMG9RN0buuYZdlK2t1Epo/awgkAXTfqx
u1AQUsemfNQJOtZfbdBIcUfVOFYGxSnRfL8fdCoxLe3gzGAKlcEKo2aa6QdZGZ+5
0TUv8gIbdvrF4cPCHIzunIW35gokbYkEnnJDiXwsNfR3kSixn+XKiysdcD7QztAj
7p4kO/fC38+I3WsW87l6iwfghVEIzcUZWKgBLAQP/aPFBw30z9mQ/HWAwcbTwohW
dQIDAQAB
-----END PUBLIC KEY-----`

        let privatekey = `-----BEGIN PRIVATE KEY-----
MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQC9fnsq3+sdOLGL
MKKV85dryhQ0w4S7VQ1/wwpfkzmg16jfcy6mcFwsBRIvHsYCszHcCkEtOVOWYX+b
wG4PN6kLgYS0POvhKZ0XwkKmNoTe0nyUH0iEZ82Uwb1E3Ru65hl2Ura3USmj9rCC
QBdN+rG7UBBSx6Z81Ak61l9t0EhxR9U4VgbFKdF8vx90KjEt7eDMYAqVwQqjZprp
B1kZn7nRNS/yAht2+sXhw8IcjO6chbfmCiRtiQSeckOJfCw19HeRKLGf5cqLKx1w
PtDO0CPuniQ798Lfz4jdaxbzuXqLB+CFUQjNxRlYqAEsBA/9o8UHDfTP2ZD8dYDB
xtPCiFZ1AgMBAAECggEAQ4twmtVLKNTbEFrLMXktOcpDzpT83IuSL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16j
eWM9V05bdEZ9MWVpbq7lTd3QgQPLd0SYo5zzZj9iz96NRoP0DiewOvC22gdxFbVc
POIUZ3xbcc5CXaOk/cBZdmFglhUN1bs0458fl1lRd+CiGqtkLz3BqqHLWKTlho5W
VG71g/fYoBrKbgxA84YutUcYWA==
-----END PRIVATE KEY-----`


        // let tools = new JSEncrypt()
        // tools.setPublicKey(publickey)
        // let r = tools.encrypt("i love u")
        // console.log(r);

        // let secret = `dCPyLhQepx9OYKzP20llENDnOke+wuzKRfK4FJbZm7G6M5p9BCa4AGHz7W9MuWv6RfbrapXTmzHKqgE9VGtLXBes6s2GIw4o/8FiAoaB+S9TRmBcmE1oiAQ5oVh287rg4ffaq7DXEbYGbBXXXhUGPvU7vIS/BrULVUoiWPltUknyMZUR9Wz5zUtw37/FPTe2SK7sqGfCb36NbvtuuodcXotCTCNt8/Z2OM6B2pqk1Iw3sV1z6U+HPfOQT+fVBfP1FJZrsOE5Kn86LmtWp4PqGv6hZWeKtn0cG2aebchVlEoLtk2tKG0lJ0uvy8kbASDSYloBdhDaA4FhvPGmU69lcg==`
        // let tools = new JSEncrypt()
        // tools.setPrivateKey(privatekey)
        // let r = tools.decrypt(secret)
        // console.log(r);


    </script>

</body>

</html>